<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>小智桌面</title>
  <style>
    body{
      margin: 0;
      user-select: none;
    }
    div{
      box-sizing: border-box;
    }
    .activity-dialog{
      position: relative;
      width: 100%;
      height: 100vh;
      padding-bottom: 17px;
      border-radius: 10px;
      background: url('./static/activity/coupon91.png') 0 0 no-repeat;
      background-size: 100% 100%;
    }
    .activity-header{
      padding: 12px 0 0 16px;
      height: 52px;
      width: 100%;
      box-sizing: border-box;
    }
    .logo{
      display: flex;
      align-items: center;
    }
    .xzdesktop {
      margin-right: 6px;
      width: 16px;
      height: 16px;
    }
    .xzdesk{
      font-size: 12px;
      font-weight: 400;
      color: #333;
    }
    .close{
      position: absolute;
      right: 14px;
      top: 12px;
      width: 16px;
      height: 16px;
      cursor: pointer;
    }
    .activity-body{
      height: 231px;
    }
    .join-btn{
      display: inline-block;
      padding: 2px;
      background: linear-gradient(180deg, rgba(255, 251, 210, 1) 0%, rgba(245, 6, 60, 1) 100%);
      border-radius: 28px;
      box-shadow: 0px 4px 20px 0px rgba(199,14,58,0.54);
      cursor: pointer;
    }
    .join{
      display: inline-block;
      padding: 9px 64px;
      font-size: 20px;
      font-family: Microsoft YaHei-Bold, Microsoft YaHei;
      font-weight: bold;
      color: #FFF;
      text-align: center;
      background: linear-gradient(214deg, #FF75B7 0%, #FF2424 100%);
      border-radius: 28px;
    }
    .join-btn:hover .join{
      background: linear-gradient(214deg, #F44D9D 0%, #EF1E1E 100%);
    }
    .detail-btn{
      font-size: 14px;
      color: #333;
      cursor: pointer;
    }
    .detail-btn:hover{
      text-decoration: underline;
    }
    .center{
      text-align: center;
    }
    .mt8{
      margin-top: 8px;
    }
  </style>
</head>
<body>
  <div class="activity-dialog">
    <div class="activity-header">
      <div class="logo">
        <img src="./static/right-info/xzdesktop.svg" class="xzdesktop" alt="小智桌面">
        <div class="xzdesk">小智桌面</div>
      </div>
      <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="close" onclick="closePage()">
        <g id="Frame 29">
        <path d="M4.24255 4.24268L12.7278 12.728" stroke="#333333" stroke-linecap="round"/>
        <path d="M12.7279 4.24268L4.24262 12.728" stroke="#333333" stroke-linecap="round"/>
        </g>
      </svg>
    </div>
    <div class="activity-body">

    </div>
    <div class="center">
      <label class="join-btn"><span class="join" onclick="renew()">立即使用</span></label>
    </div>
  </div>
  <script src="./static/js/base.js"></script>
  <script>
    function closePage(){
      invokeAPi('xz_CloseWnd')
    }
    function renew(){
    invokeAPi('xz_switch_dialog', 'XZMainWindow', true)
    invokeAPi('xz_switch_dialog', 'XZDesktopLogin', true,"",true)
    // invokeAPi('xz_switch_tab', 3)
    invokeAPi('xz_CloseWnd')
    }
    function openUrl(url){
      invokeAPi('xz_open_url',url)
    }
  </script>
</body>
</html>
